import { todoReducer } from './todo'
// combineReducers 合并Reducers
import { combineReducers } from 'redux'

// 把多个 Reducers 合并起来
const rootReducer = combineReducers({
  // 相当于 Vuex 的模块
  todo: todoReducer,
  // user: userReducer,
})

// 导出合并后的 rootReducer
export default rootReducer
